package com.dfiov.cloud.msmtools.controller;


import com.dfiov.cloud.msmtools.service.business.UserService;
import com.pateo.qingcloud.framework.common.base.BaseRestResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;

    /**
     * 检查用户账号信息的数据完整性
     */
    @RequestMapping(value = "/consistency/checkAll", method = RequestMethod.POST)
    @ApiOperation(value = "检查用户账号信息的数据完整性", httpMethod = "POST", response = BaseRestResponse.class, notes = "检查用户账号信息的数据完整性")
    public BaseRestResponse<String> consistencyCheckAll(@RequestParam String phone) {
        BaseRestResponse<String> checkResult = userService.consistencyCheckAll(phone);

        return checkResult;
    }

}
